using System;

namespace InfiniTec.Exchange.Notifications
{
	/// <summary>
	/// Contains information about an exception.
	/// </summary>
	public sealed class ExceptionEventArgs: EventArgs
	{
		/// <summary>
		/// Gets the exception for the event.
		/// </summary>
		/// <value>The exception.</value>
		public Exception Exception { get; private set; }

		/// <summary>
		/// Initializes a new instance of the <see cref="ExceptionEventArgs"/> class.
		/// </summary>
		/// <param name="exception">The exception to associate with the event.</param>
		public ExceptionEventArgs(Exception exception)
		{
			Exception = exception;
		}
	}
}